home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Snippets / HexThing 1.0.1 / Read Me < prev   
Encoding:
Text File  |  1995-12-01  |  1.2 KB  |  36 lines  |  [TEXT/ttxt]

  1. Another itty bitty bytes(tm) public domain source code demo, by
  2. kenlong@netcom.com."
  3.  
  4. Puts up a window, draws 4 scroll bars with values of 0 to 15, then
  5. "converts" control values int hex, decimal and bit values for the
  6. two bytes they represent.
  7.  
  8. That's 0x0000 to 0xffff, 0 to 65535 and 0000000000000000 to
  9. 1111111111111111, respectively.
  10.  
  11. The "conversion" was done with switched DrawString substitutes for
  12. control values passed.  I used two routines for this, but it
  13. could have been done with one and a nested (double) switch based
  14. on where (which rect) it was to be drawn into.  Don't anyone ever
  15. acuse me of using optimum code!  :^)
  16.  
  17. Doesn't have key input or copy-out capability, but then I wasn't
  18. demo'ing that.  :^)  You can add it if you like, then repost.
  19.  
  20. Just a little something I tossed together out of a Bullseye shell,
  21. in combination with Earthplot control handling parts.
  22.  
  23. I was just fiddling around with some drawing of strings and
  24. frames. The "embossing" isn't really embossing because it looks
  25. "raised" whereas embossing looks "sunken."
  26.  
  27. What's next?  I'm going to *really* make it complicated by making
  28. it into "RGBThing."
  29.  
  30. One more thing, it won't run on a B/W Mac.  Get into the 20th
  31. century!  Color is the cool thing!
  32.  
  33. Enjoy!
  34.  
  35. kenlong@netcom.com
  36.